package com.seespring.weiniying.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Basic {
  @TableId
  private Long id;
  @TableField(fill = FieldFill.INSERT) //创建时自动填充
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//日期格式化
  private LocalDateTime createTime;
  @TableField(fill = FieldFill.INSERT_UPDATE)//创建与修改时自动填充
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//日期格式化
  private LocalDateTime updateTime;
  @TableLogic
  private int delFlag;
}
